<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8" />
  <title>广西云客户端欢迎你</title>
  <meta name="renderer" content="webkit" />
  <meta http-equiv="x-ua-Compatible" content="IE=Edge,chrome=1" />
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1" />
  <meta name="format-detection" content="telephone=no" />
  <meta name="keywords" content="广西云客户端" />
  <meta name="description" content="广西云客户端" />
  <link rel="stylesheet" href="assets/css/reset.css" />
  <link rel="stylesheet" href="assets/css/css.css" />
</head>

<body>
  <header>
    <img id="wx_ar" src="assets/images/android.jpg" alt="" />
    <img class="logo" src="assets/images/logo_v5.png" alt="广西云客户端" />
    <i class="icon-1">广西新闻第一发布平台</i>
    <a id="android" href="https://material.cloudgx.cn/img/20250423/a19328afe7274360bdbdff103188713f.apk"><i
        class="icon-2">安卓手机下载</i></a>
    <a id="ios" href="https://itunes.apple.com/cn/app/guang-xi-ri-bao/id940025132"><i class="icon-3">苹果手机下载</i></a>
    <p class="icon-4">
      微信中点击下载无反应的，请点击微信右上角按钮，选择“在浏览器中打开”进行下载。
    </p>
    <a id="title" class="title_c" style="text-decoration: none" href="https://beian.miit.gov.cn/">
      <strong style="color: #333" class="title_say">ICP证 桂B2-20040022</strong>
    </a>
  </header>

  <script src="assets/js/jquery-1.7.2.min.js?t=20210730083241"></script>
  <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
  <script src="assets/js/index.js?20210730083252"></script>
</body>

</html>
<script>
  // var script0 = document.createElement('script');
  // script0.src = 'js/iscroll-zoom.js?v=' + Math.random();
  // document.body.appendChild(script0);

  var script = document.createElement("script");
  script.src = "js/main.js?v=" + Math.random();
  document.body.appendChild(script);

  var script1 = document.createElement("script");
  script1.src = "js/article.js?v=" + Math.random();
  document.body.appendChild(script1);
</script>
<!-- <script src="js/article.js"></script> -->
<script>
  var shareData = {
    title:
      "广西云客户端欢迎你！", // 标题
    imgUrl:
      "https://fusion.gxxw.com/assets/images/logo_v5.png", // 缩略图
    link: window.location.href, // 描述
    desc: "", // 描述
  };

  function setWXConfig() {
    var shareurl = window.location.href.split("#")[0];
    // var shareurl = "https://bookingmaster.gxrb.com.cn/front/2021sjzxhnh5/index.html";
    console.log("share url:", shareurl);
    $.ajax({
      type: "get",
      url:
        "https://zuul.gxrb.com.cn/api-newtime/getSignature/GetSignature/?shareMTurl=" +
        encodeURIComponent(shareurl),
      success: function (res) {
        console.log("GetSignature", res);
        if (res.data && res.data.noncestr) {
          wx.config({
            debug: false,
            appId: "wxfde72d83dd939a05", // 必填，公众号的唯一标识
            timestamp: res.data.timestamp, // 必填，生成签名的时间戳
            nonceStr: res.data.noncestr, // 必填，生成签名的随机串
            signature: res.data.signature, // 必填，签名
            jsApiList: [
              "onMenuShareAppMessage",
              "onMenuShareTimeline",
              "openLocation",
              "getLocation",
              "onMenuShareQQ",
            ], // 必填，需要使用的JS接口列表
            openTagList: ["wx-open-launch-weapp"],
          });
          wx.ready(function () {
            console.log("wx ready");
            // wx.onMenuShareAppMessage(shareData);
            wx.onMenuShareAppMessage({
              title: shareData.title, // 分享标题
              desc: shareData.desc, // 分享描述
              link: shareData.link, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
              imgUrl: shareData.imgUrl, // 分享图标
              success: function () {
                // 用户点击了分享后执行的回调函数
              },
            });
            wx.onMenuShareTimeline({
              title: shareData.title, // 分享标题
              link: shareData.link, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
              imgUrl: shareData.imgUrl, // 分享图标
              success: function () {
                // 用户点击了分享后执行的回调函数
              },
            });
            wx.onMenuShareQQ(shareData);
            // wx.onMenuShareWeibo(shareData);
            // wx.onMenuShareQZone(shareData);
          });

          wx.error((err) => {
            console.log("wx.error", err);
          });
        }
      },
    });
  }
  setWXConfig();
</script>